package cn.qicaiwang.open.system.service.impl;

import cn.qicaiwang.open.system.mapper.SystemUserWechatMapper;
import cn.qicaiwang.open.system.model.entity.SystemUserWechat;
import cn.qicaiwang.open.system.service.ISystemUserWechatService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SystemUserWechatService extends ServiceImpl<SystemUserWechatMapper, SystemUserWechat> implements ISystemUserWechatService {
    @Autowired
    private SystemUserWechatMapper systemUserWechatMapper;

    @Override
    public SystemUserWechat selectOneByUnionId(String unionId) {
        return systemUserWechatMapper.selectOneByUnionId(unionId);
    }

    @Override
    public SystemUserWechat selectOneByUserId(String userId) {
        return systemUserWechatMapper.selectOneByUserId(userId);
    }
}
